<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><s:property value="#session.access"/></title>
<meta name="viewport" content="width=device-width,inital-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<meta name="format-detection" content="telephone=no,email=no,adress=no">
<link href="<%=request.getContextPath()%>/css/global.css" type="text/css" rel="stylesheet" />
<link href="<%=request.getContextPath() %>/css/bootstrap.css" type="text/css" rel="stylesheet"/>
<link href="<%=request.getContextPath() %>/css/bootstrap-responsive.css" type="text/css" rel="stylesheet"/>
<link href="<%=request.getContextPath() %>/js/date/skin/WdatePicker.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/global.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/bootstrap.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/date/WdatePicker.js"></script>
<script type="text/javascript">

</script>
</head>
<body>
	<div class="container">
		
		<s:action name="global_menu"  executeResult="true"></s:action>
		
		<div class="row">
			<div class="span12">
					<ul class="breadcrumb">
						<li>
							<a href="javascript:void(0)">首页</a> <span class="divider">/</span>
						</li>
						<li>
							<a href="javascript:void(0)">资金情况</a> <span class="divider">/</span>
						</li>
						<li class="active">
							收支明细
						</li>
					</ul>
					
					<h5>
						明细列表
					</h5>
					
					<form id="sform" action="smb_list.html" method="get" enctype="multipart/form-data">
						<table>
							<tr>
								<td height="40">
									<s:select id="smbType" name="smbType" list="@dicts.PaymentDict@MERCHANT_TYPE" headerKey="" headerValue="收支类型" />
									<s:select id="smbState" name="smbState" list="#{'1':'有效','0':'无效'}" headerKey="" headerValue="资金状态"/>
									
									<s:textfield  id="smbDateTop"  name="smbDateTop" placeholder="日期起"  onclick="WdatePicker();"  cssStyle="width:100px;" ><s:param name="value"><s:date name="smbDateTop" format="yyyy-MM-dd"/></s:param></s:textfield>
									 - 
									<s:textfield  id="smbDateEnd"  name="smbDateEnd" placeholder="日期止"  onclick="WdatePicker();"  cssStyle="width:100px;" ><s:param name="value"><s:date name="smbDateEnd" format="yyyy-MM-dd"/></s:param></s:textfield>

									<input type="button"    class="btn btn-primary"  value="查询" onclick="sform.submit();"/>
									<input type="button" class="btn btn-primary"    value="导出数据"  onclick="$.MsgBox.Confirm('提示', '导出数据条数限制不能超过<s:property value="@common.CommonDict@EXPORT_LIMIT"/>条,确认导出吗?', function(){window.open(location.href.replace('list','export'));});" />
									</td>
							</tr>
						</table>
					</form>
					
					<table class="table table-bordered table-striped">
						<thead>
							<tr>
								<th style="width: 20%;">流水号</th>
								<th style="width: 10%;">标识</th>
								<th style="width: 5%;" >方向</th>
								<th style="width: 25%;">类型</th>
								<th style="width: 15%;">金额</th>
								<th style="width: 5%;">状态</th>
								<th style="width: 20%;">日期</th>
							</tr>
						</thead>
						<tbody>
							<s:iterator value="smbList" id="show" status="seq">
							<tr>
							<td><s:property value="#show.smbNo"/></td>
							<td><s:property value="#show.smbSign"/></td>
							<td >
								<s:if test="#show.smbSign.startsWith('M')">
									<font color="red">支</font>
								</s:if><s:else>
									<font color="green">收</font>
								</s:else>
							</td>
							<td><s:property value="#show.smbType"/></td>
							<td><font color="<s:if test="#show.smbSign.startsWith('M')">red</s:if><s:else>green</s:else>"><s:text name="global.format.number"><s:param value="#show.smbAmount"/></s:text></font></td>
							<td><s:if test="#show.smbState==0"><img src="<%=request.getContextPath() %>/image/cancel.png"  /></s:if><s:else><img src="<%=request.getContextPath() %>/image/accept.png"  /></s:else></td>
							<td><s:text name="global.format.dateminute"><s:param value="#show.smbDate"/></s:text>
							</tr>
							</s:iterator>
						</tbody>
					</table>				
					
					<p style="float: right;">
					当前查询结果内金额汇总 : <s:text name="global.format.number"><s:param value="smbTotal"/></s:text> CNY</p>
					
					<%String paga="/"+session.getAttribute("access")+"/page.jsp"; %>
					<s:set name="pageInfo" value="pageInfo"></s:set> <jsp:include flush="true" page="<%=paga %>"></jsp:include>
					
					<div class="hero-unit" style="padding: 15px;font-size: 14px;line-height: 20px;">
						<p>
							1 . 所有交易相关的收支以及提现等和资金相关的流水账都在收支明细中记录
						</p>
						<p>
							2 . 默认只查询有效状态的收支记录,如果要查询未生效的(未到期的保证金,未审核的退款等)记录,请更改查询条件.
						</p>
					</div>
					
				</div>
		</div>
		
		
		<s:action name="global_foot"  executeResult="true"></s:action>
	</div>
</body>
</html>

